<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="com.javapig.util.*,com.dd.*,com.dd.exception.*"%>
<%
	String errorMessage = "";
	boolean is_login = ParamUtils.getBooleanParameter(request,
			"is_login", false);
	//执行用户名密码检测
	if (is_login) {
		String username = ParamUtils.getParameter(request, "username");
		String password = ParamUtils.getParameter(request, "password");

		boolean errors = false;

		if (ParamUtils.getBooleanParameter(request, "is_login")) {
			try {
		      //如果用户名密码错误会触发 UnauthorizedException
		      Authorization authToken = AuthorizationFactory
				.createAuthorization(username, password);

		     session.setAttribute("com.dd.Authorization", authToken);
		     //判断用户级别
		     if (authToken.getLevel() == SysGlobals.C_Admin)
			    response.sendRedirect("mainFrame.jsp");
		     else if (authToken.getLevel() == SysGlobals.C_CaiGouYuan)
			    //response.sendRedirect("comm_user.jsp");
		    	 response.sendRedirect("comm_user_Frame.jsp");
		     else if (authToken.getLevel() == SysGlobals.C_ShenHeYuan)
		    	//response.sendRedirect("sh_xiangMuList.jsp");
		    	 response.sendRedirect("comm_user_Frame.jsp");
		     else
		    	 throw new UnauthorizedException("用户类别出错");
			} catch (UnauthorizedException ue) {
		        errors = true;
		        errorMessage = ue.getMessage();
			}
		}

	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0037)http://210.51.38.169/moban/index.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>红星</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
</HEAD>
<BODY>
<FORM id=form1 name=form1 action=login.jsp method=post>
<DIV style="color: red"><%=errorMessage%> <INPUT id=is_login
	type=hidden value="true" ; name=is_login></DIV>
<DIV style="VERTICAL-ALIGN: middle" align=center>
<TABLE cellSpacing=0 cellPadding=0 width=800 border=0>
	<TBODY>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 800px; HEIGHT: 339px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=11><IMG height=339 alt="" src="images/login_1.gif"
				width=800></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 339px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=339 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 371px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/login_2.gif" width=371></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 93px; HEIGHT: 16px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=4 rowSpan=2><INPUT id=username
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 90px; HEIGHT: 12px; BORDER-RIGHT-WIDTH: 0px"
				name=username></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 336px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=6><IMG height=1 alt="" src="images/login_4.gif"
				width=336></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 371px; HEIGHT: 260px; BORDER-RIGHT-WIDTH: 0px"
				rowSpan=7><IMG height=260 alt="" src="images/login_5.gif"
				width=371></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 5px; HEIGHT: 47px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=2 rowSpan=5><IMG height=47 alt=""
				src="images/login_6.gif" width=5></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 59px; HEIGHT: 36px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=3 rowSpan=3><INPUT id=ImageButton1
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"
				tabIndex=1 type=image src="images/login_7.gif" name=ImageButton1></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 272px; HEIGHT: 260px; BORDER-RIGHT-WIDTH: 0px"
				rowSpan=7><IMG height=260 alt="" src="images/login_8.gif"
				width=272></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 15px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=15 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 93px; HEIGHT: 8px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=4><IMG height=8 alt="" src="images/login_9.gif"
				width=93></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 8px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=8 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 93px; HEIGHT: 16px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=4 rowSpan=2><INPUT id=password
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 90px; HEIGHT: 12px; BORDER-RIGHT-WIDTH: 0px"
				type=password name=password></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 13px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=13 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 59px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=3 rowSpan=2><IMG height=11 alt=""
				src="images/login_11.gif" width=59></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 3px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=3 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 93px; HEIGHT: 8px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=4><IMG height=8 alt="" src="images/login_12.gif"
				width=93></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 8px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=8 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 25px; HEIGHT: 213px; BORDER-RIGHT-WIDTH: 0px"
				rowSpan=2><IMG height=213 alt="" src="images/login_13.gif"
				width=25></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 5px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=11 alt="" src="images/login_14.gif" width=5></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 51px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=11 alt="" src="images/login_15.gif" width=51></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 16px; HEIGHT: 213px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=2 rowSpan=2><IMG height=213 alt=""
				src="images/login_16.gif" width=16></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 5px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=2><IMG height=11 alt="" src="images/login_17.gif"
				width=5></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 51px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"><A
				href="http://210.51.38.169/moban/uppass.aspx"><IMG id=aa
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 51px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"
				tabIndex=2 src="images/login_18.gif"></A></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 4px; HEIGHT: 213px; BORDER-RIGHT-WIDTH: 0px"
				rowSpan=2><IMG height=213 alt="" src="images/login_19.gif"
				width=4></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 11px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=11 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 56px; HEIGHT: 202px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=2><IMG height=202 alt="" src="images/login_20.gif"
				width=56></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 56px; HEIGHT: 202px; BORDER-RIGHT-WIDTH: 0px"
				colSpan=3><IMG height=202 alt="" src="images/login_21.gif"
				width=56></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 202px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=202 alt="" src="images/spacer.gif" width=1></TD>
		</TR>
		<TR>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 371px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=371></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 25px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=25></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 5px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=5></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 51px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=51></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 12px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=12></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 4px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=4></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 1px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=1></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 4px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=4></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 51px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=51></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 4px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=4></TD>
			<TD
				style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 272px; HEIGHT: 1px; BORDER-RIGHT-WIDTH: 0px"><IMG
				height=1 alt="" src="images/spacer.gif" width=272></TD>
			<TD></TD>
		</TR>
	</TBODY>
</TABLE>
</DIV>
<DIV><INPUT type=hidden></DIV>
</FORM>
</BODY>
</HTML>
